package routers

import (
	"github.com/astaxie/beego"
	"ego/controllers"
)

func init() {
	//ns := beego.NewNamespace("/v1",
	//	beego.NSNamespace("/object",
	//		beego.NSInclude(
	//			&controllers.ObjectController{},
	//		),
	//	),
	//	beego.NSNamespace("/user",
	//		beego.NSInclude(
	//			&controllers.UserController{},
	//		),
	//	),
	//)
	//beego.AddNamespace(ns)
	beego.Router("/api/user",&controllers.JsonController{})
	beego.Router("/api/photos",&controllers.JsonController{},"get:GetPhotos")
	beego.Include(&controllers.JsonController{})//注解路由

}
